<%@ page pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 引入 Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link href="../css/bootstrap-table.min.css" rel="stylesheet">
<script src="../js/jquery-1.11.3.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<style type="text/css">
#table-1 thead, #table-1 tr {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #a8bfde;
}

#table-1 {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #a8bfde;
}

/* Padding and font style */
#table-1 td, #table-1 th {
	padding: 5px 10px;
	font-size: 12px;
	font-family: Verdana;
	color: #5b7da3;
}

/* Alternating background colors */
#table-1 tr:nth-child(even) {
	background: #d3dfed
}

#table-1 tr:nth-child(odd) {
	background: #FFF
}
</style>
</head>
<body>
	<h1 style="color: #409EFF; text-align: center;">欢迎进入家族族谱管理员系统</h1>
	<hr>
	<div align="right">
		<a href="getUser.action">用户管理</a> <a href="findReport.action">审核举报</a>
		<a href="editUser.action">个人资料</a> <a
			href="${pageContext.request.contextPath}/logout.action">退出系统</a>
	</div>
	<div id="page-wrapper">
		<font color="red" style="margin-left: 70px;"> <%-- 提示信息--%> <span
			id="message">${msg}</span>
		</font>
		<table align="center" id="table-1">
			<tr>
				<th>序号</th>
				<th>举报人</th>
				<th>被举报人</th>
				<th>被举报内容</th>
				<th>举报时间</th>
				<th>举报原因</th>
				<th>管理</th>
			</tr>
			<c:forEach var="report" items="${report}" varStatus="vs">
				<tr>
					<td>${report.report_id}</td>
					<td for="report_user_id">${report.report_user_id}</td>
					<td for="reported_user_id">${report.reported_user_id}</td>
					<td>${report.reported_circle_id}</td>
					<td>${report.report_time}</td>
					<td>${report.report_cause}</td>
					<td><a
						href="updateReport.action?report_state=1&report_id=${report.report_id }"
						class="btn btn-primary btn-xs">通过 </a> <a
						href="updateReport.action?report_state=2&report_id=${report.report_id}"
						class="btn btn-danger btn-xs">不通过</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>
<%@include file="/WEB-INF/footer.jsp"%>